package com.share.finance.risk.rules.model.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 工程表
 * </p>
 *
 * @author author
 * @since 2023-12-25
 */
@Data
@Accessors(chain = true)
@TableName("rul_project_hist")
public class ProjectHist implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 工程id
     */
    @TableField(value = "project_id")
    private String projectId;
    /**
     * 发布的版本
     */
    private String version;
    /**
     * 规则文件内容
     */
    private String body;
    /**
     * 存在服务器的文件位置
     */
    @TableField(value = "file_path")
    private String filePath;
    /**
     * 状态：0-待生效，1-编译失败,2-编译通过
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private Project project;

    @TableField(exist = false)
    private List<StrategyConf> strategyConfs;
}
